#ifndef _MQTTCLIENT_MQTTCLIENTMAIN_H_
#define _MQTTCLIENT_MQTTCLIENTMAIN_H_

#include <QWidget>

namespace Ui
{
	class MQTTClientMain;
}
class CDataCtrl;

class CMQTTClientMain : public QWidget
{
	Q_OBJECT
public:
	CMQTTClientMain(QWidget *parnet = nullptr);
	~CMQTTClientMain();

signals:
	void sigInitDbData();

private:
	void init();
	void openConnectManager(int status);

private slots:
	void on_btnNewConnect_clicked();
	void on_btnOpenConnect_clicked();

private:
	Ui::MQTTClientMain *m_ui;
	CDataCtrl *m_pDataCtrl;
	QThread *m_pCtrlThread;
};

#endif
